#import "Game.h"

@interface Game()

@property (readwrite) NSMutableArray* pictures;
@property (readwrite) NSMutableArray* text;
@property (readwrite) GameCategory type;
@property (readwrite)  NSString* name;
@property (readwrite) NSMutableArray* components;

@end

@implementation Game

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.pictures=[[NSMutableArray alloc]init];
        self.text=[[NSMutableArray alloc]init];
        self.components=[[NSMutableArray alloc]init];
    }
    return self;
}

-(void)addPicture:(NSString *)picture{
    [self.pictures addObject:picture];
}

-(void)addText:(NSString *)text{
    [self.text addObject:text];
}

-(void)addComponents:(GameComponent *)component{
    [self.components addObject:component];
}

-(void)setName:(NSString *)name{
    if (name && ![name isEqualToString:@""]) {
        _name=name;
    }
}

-(void)setType:(GameCategory)type{
    if (type) {
        _type=type;
    }
}

-(void)play{
    
}

-(BOOL)isRight{
    return YES;
}

-(void)gameOver{
    
}

-(void)removeAllComponents{
    self.components=[[NSMutableArray alloc]init];
}
@end
